<?php
/**
 * <https://y.st./>
 * Copyright © 2019 Alex Yst <mailto:copyright@y.st>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org./licenses/>.
**/

$xhtml = array(
	'<{title}>' => 'The Shade from Our Trees',
	'takedown' => '2017-11-01',
	'<{body}>' => <<<END
<img src="/img/CC_BY-SA_4.0/y.st./weblog/2019/07/17.jpg" alt="A short waterfall in town" class="framed-centred-image" width="800" height="480"/>
<section id="diet">
	<h2>Dietary intake</h2>
	<p>
		For breakfast, I had 58 grams of cereal and 119 grams of soy milk.
		For lunch, I had a 304-gram soft taco.
		I&apos;d planned to have another soft taco for dinner.
		That was my planned dinner.
		I just couldn&apos;t bring myself to eat another one though.
		It&apos;s not that they don&apos;t taste good.
		The tortillas are a bit stale and falling apart, but the tacos are fine.
		They&apos;re just not very filling, and I&apos;ve been hungry all day when I&apos;ve been trying to eat them.
		So I had a peanut butter and jelly sandwich for dinner instead.
		I snacked on 80 pistachios throughout the day.
	</p>
	<p>
		Later, after dinner time, I ended up hungry again and had the planned soft taco, so maybe I&apos;ll just call that meal dinner.
		Also though, my kitchen scale stopped registering weights at this point, so I&apos;m no longer able to keep track by weight how much of something I eat.
		The scale turns on, but it stays at zero, no matter what I put on it.
		I tried changing the batteries, but my other three sets of batteries didn&apos;t change anything.
		If I only used that scale for keeping track of what I eat, I&apos;d say it was fine.
		I think I&apos;m good now.
		I&apos;m making progress in the right direction, and I don&apos;t need to keep track of the exact amounts I eat, so long as I try not to let myself eat much when I&apos;m wanting food but not actually hungry.
		That&apos;s the main thing I need to keep from slipping on.
		I can eat a few pistachios or something just because I want to, but I can&apos;t go overboard.
		Actual meals aren&apos;t my problem at this point, I don&apos;t think.
		That, and I need to keep up the bike rides every day.
		But I also use that scale for cooking.
		I have no idea how to fix this thing, so I&apos;ll probably end up getting a new one.
	</p>
</section>
<section id="drudgery">
	<h2>Drudgery</h2>
	<p>
		My discussion post for the day:
	</p>
	<blockquote>
		<p>
			You discussed methods, and I like that you brought up that classed can be imported from libraries, making code usable by third-party developers.
			However, you didn&apos;t discuss properties at all.
			You mentioned that a &quot;property of methods&quot; is that you can call them from anywhere to reuse their internal code, but that&apos;s not what a &quot;property&quot; is in this context.
			A property is a variable that is bound to either a class or an object.
		</p>
	</blockquote>
	<blockquote>
		<p>
			I like how you phrased your post.
			You covered a lot of detail, yet you remained concise.
			And like you said, adding more polygons adds to the resources needed to render an image.
			I would like to bring up though that normal mapping isn&apos;t an implementation of bump mapping as you said it was.
			They&apos;re very similar, but if anything, it&apos;d be the reverse (except that bump maps were invented first).
			A bump map can only make parts of the object seem to jut out our in.
			There are no directions aside form that, and viewing a bump-mapped face from an angle reveals the trick.
			You can&apos;t implement a normal map using bump map techniques though, as normal maps work in all three dimensions, and thus need three times the data to implement.
			On the other hand, you could implement a bump map using normal map techniques by moving the <var>x</var>, <var>y</var>, and <var>z</var> components in equal amounts.
			Doing that though would be using three times the data to store what a bump map would need for the same effect though.
		</p>
	</blockquote>
</section>
<section id="Woodward">
	<h2>Josh Woodward</h2>
	<p>
		My physical copy of The Shade from Our Trees by Josh Woodward arrived today.
		Now I&apos;m just waiting for the $a[FLAC] files.
		This feels familiar.
	</p>
	<p>
		It&apos;s very nice seeing my name, stylised as &quot;Alexand(er|ra)&quot;, mentioned in the $a[CD] cover, in the &quot;thank you&quot; section.
		It&apos;s especially nice because, just below, the license of the album ({$a['CC BY 4.0']}) is mentioned, and below that, it says &quot;Please copy and share this with your friends!&quot;.
		Woodward doesn&apos;t try to hold a monopoly over his work, and actively encourages copying and redistribution.
		This is the sort of artist I enjoy supporting and enjoy buying music from.
		It&apos;s a bit ironic, I suppose.
		If you try to be the only one that can sell what you&apos;ve made, I want no part of it.
		But if you allow people to share what you&apos;ve done without even paying you, I actually want to send cash your way.
	</p>
</section>
<section id="Minetest">
	<h2>Minetest</h2>
	<img src="/img/CC_BY-SA_3.0/minetest.net./weblog/2019/07/17.png" alt="{description}" class="framed-centred-image" width="1024" height="600"/>
	<p>
		I&apos;ve decided to name the new island I&apos;m building to Restless Island.
		It fits with the whole &quot;no sleep&quot; theme I&apos;m using for the area.
		It&apos;s also a bit of a put though, as this island probably won&apos;t get settled.
		I&apos;ll just raid it for its sand and a couple mushrooms.
		It&apos;s just too far from Sleepless Isle to be worth frequently walking to.
	</p>
	<p>
		I built the main bridge out far enough to reach Restless Island, or so I thought.
		Once I ventured over there, I found the best place to connect the offshoot bridge to the main one will require the main bridge to be another eight-metre segment longer.
		I&apos;ll probably build that tomorrow.
		I also scouted the island for mushrooms.
		I could only find two of them, even though I know there should have been at least three or four, but the two were of differing varieties, so I&apos;ve got both types now, and that&apos;s all I&apos;m really after.
		The other mushroom or mushrooms can stay hidden, I suppose.
		I backed up my data before harvesting the mushrooms, just in case they didn&apos;t drop any spores.
		This&apos;ll be my only chance to get mushrooms in a very long time, so I didn&apos;t want to lose the oportunity due to bad $a[RNG].
		Both mushrooms dropped a couple spores each though, so the backup wasn&apos;t needed, and I got a small mushroom farm set up under my cabin.
		The farm&apos;s low enough to be under the local sea floor, so I can actually expand it well beyond my island, should I get enough spores from the farm to do that.
		There are deeper sea floors though, so the farm will have its limits if I don&apos;t give it a second floor.
	</p>
</section>
END
);
